import request from '@/utils/request'

export function getTList(params) {
  return request({
    url: '/tag/list',
    method: 'get',
    params
  })
}

export function createOrEditTag(data) {
  return request({
    url: '/tag/createOrEdit',
    method: 'post',
    data
  })
}

export function deleteTag(data) {
  return request({
    url: '/tag/delete',
    method: 'post',
    data
  })
}

export function deleteSo(data) {
  return request({
    url: '/source/delete',
    method: 'post',
    data
  })
}

export function getSoList() {
  return request({
    url: '/source/list',
    method: 'get',
  })
}

export function createOrEditSo(data) {
  return request({
    url: '/source/createOrEdit',
    method: 'post',
    data
  })
}

export function getStatusList(page, size) {
  return request({
    url: '/status/list',
    method: 'get',
    params: {page, size}
  })
}


export function createOrEditStatus(data) {
  return request({
    url: '/status/updateOrsave',
    method: 'post',
    data
  })
}

export function removeStatus(data) {
  return request({
    url: '/status/remove',
    method: 'post',
    data
  })
}

//名片样式列表接口
export function cardStyleList(params) {
  return request({
    url: '/back/list',
    method: 'get',
    params
  })
}

//编辑、添加接口
export function saveOrUpdate(data) {
  return request({
    url: '/back/saveOrUpdate',
    method: 'post',
    data
  })
}

export function removeStyle(data) {
  return request({
    url: '/back/remove',
    method: 'post',
    data
  })
}

// 获取排行榜数据
export function Ranking(params) {
  return request({
    url: '/data/rankingList',
    method: 'get',
    params
  })
}

// 获取客户来源数据
export function ScorsList() {
  return request({
    url: '/data/userStatusOrSource',
    method: 'get',
  })
}

// 获取目标数据
export function taskLis(params) {
  return request({
    url: '/data/target',
    method: 'get',
    params
  })
}

// 获取销售对比数据
export function contrast(params) {
  return request({
    url: '/data/contrast',
    method: 'get',
    params
  })
}

// 获取名片数据
export function busin(params) {
  return request({
    url: '/data/card',
    method: 'get',
    params
  })
}

// 获取跟进统计
export function genjin(params) {
  return request({
    url: '/data/follow',
    method: 'get',
    params
  })
}

// 获取
